import request from "@/utils/request";

// 我们起名字也要有含义，复杂些，当项目大时就会体现出来
// 直接结构
export const userRegisterService = ({ username, password, repassword }) => {
    return request.post('/api/reg', { username, password, repassword })
}

// 登录
export const userLoginService = ({ username, password }) => {
    return request.post('/api/login', { username, password })
}

// 获取用户信息
export const userGetInfoService = () => {
    return request.get('/my/userinfo')
}